home *** CD-ROM | disk | FTP | other *** search
- /*
- * proto.h -- prototypes for library functions.
- */
-
- /*
- * The following code is operating-system dependent. [@proto.01].
- * Prototypes for library functions.
- */
-
- #if PORT
- Deliberate Syntax Error
- #endif /* PORT */
-
- #if AMIGA
- #if LATTICE
- #include <dos.h>
- #endif /* LATTICE */
- #include "../h/dproto.h"
- #endif /* AMIGA */
-
- #if ATARI_ST
- #include "../h/dproto.h"
- #endif /* ATARI_ST */
-
- #if ARM
- #include <stdlib.h>
- #include <string.h>
-
- /* Our verson of unlink, which will fail if the named file does not exist */
- extern int unlink (const char *name);
-
- /* Force a cast of the function parameter to qsort() */
- #define qsort(base,n,size,cmp) \
- (qsort)((base),(n),(size),(int (*) (const void *, const void *))(cmp))
- #endif /* ARM */
-
-
- #if MACINTOSH
- #if MPW
- #include <stdlib.h>
- #include <string.h>
- #else /* MPW */
- #include "../h/dproto.h"
- #endif /* MPW */
- #endif /* MACINTOSH */
-
- #if MSDOS || OS2
- #if HIGHC_386
- #include <stdlib.h>
- #include <string.h>
- int brk Params((pointer p));
- pointer sbrk Params((msize n));
- #endif /* HIGHC_386 */
- #if INTEL_386
- #include <dos.h>
- #include <stdlib.h>
- #include <string.h>
- int brk Params((pointer p));
- #endif /* INTEL_386 */
- #if MICROSOFT || TURBO || ZTC_386
- #include <dos.h>
- #ifdef StandardLib
- #include <string.h>
- #include <stdlib.h>
- #else /* StandardLib */
- #include "../h/dproto.h"
- #endif /* StandardLib */
- #endif /* MICROSOFT || TURBO || ZTC_386 */
- #endif /* MSDOS || OS2 */
-
- #if UNIX
- #ifdef StandardLib
- #include <stdlib.h>
- #include <string.h>
- /*
- * index() is not part of the standard library. We use no prototype
- * because various systems disagree on the details, and they complain.
- */
- char *index ();
- #else /* StandardLib */
- #include "../h/dproto.h"
- #endif /* StandardLib */
- #endif /* UNIX */
-
- #if VM || MVS
- /* **** TEMPORARY *** */
- novalue abort Params((noargs));
- double atof Params((char *));
- long atol Params((char *));
- pointer calloc Params((unsigned,unsigned));
- novalue exit Params((int));
- char *getenv Params((char *));
- pointer malloc Params((msize));
- pointer realloc Params((pointer, unsigned));
- #ifdef StandardC
- #include <string.h>
- #else /* StandardC */
- char *strchr Params((char *s, int i));
- int strcmp Params((char *s1, char *s2));
- char *strcpy Params((char *s1, char *s2));
- char *strncat Params((char *s1, char *s2, int n));
- int strncmp Params((char *s1, char *s2, int n));
- char *strncpy Params((char *s1, char *s2, int n));
- char *ecvt Params((double value, int count, int *dec, int* sign));
- double pow Params((double x, double y));
- #ifdef SystemFnc
- int system Params((char *));
- #endif /* SystemFnc */
- #endif /* StandardC */
- #endif /* VM || MVS */
-
- #if VMS
- #include "../h/dproto.h"
- #endif /* VMS */
-
- /*
- * End of operating-system specific code.
- */
-
- #ifdef KeyboardFncs
- int getch Params((noargs));
- int getche Params((noargs));
- int kbhit Params((noargs));
- #endif /* KeyboardFncs */
-
- #include "../h/cproto.h"
-
- /*
- * These must be after prototypes to avoid clash with system
- * protoypes.
- */
-
- #if IntBits == 16
- #define sbrk lsbrk
- #define strlen lstrlen
- #define qsort lqsort
- #endif /* IntBits == 16 */
-